﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<CognisessDA.User>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Details
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <script type="text/javascript">
        $(function() {
            $("input").each(function(i, o) {
                $(o).attr('disabled', 'disabled');
            });
            $("select").each(function(i, o) {
                $(o).attr('disabled', 'disabled');
            });
        });
    </script>

    <fieldset>
        <legend>Details</legend>
        <div class="editor-label">
            <label for="Username">
                User Name</label>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.Username)%>
        </div>
        <div class="editor-label">
            <label for="Username">
                Password</label>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.Password)%>
        </div>
        <div class="editor-label">
            <label for="Username">
                First Name</label>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.Firstname)%>
        </div>
        <div class="editor-label">
            <label for="Username">
                Last Name</label>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.Lastname)%>
        </div>
        <div class="editor-label">
            <label for="Username">
                Avater</label>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.Avater)%>
        </div>
        <div class="editor-label">
            <label for="AboutMe">
                AboutMe</label>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.AboutMe)%>
        </div>
        <div class="editor-label">
            <label for="Email">
                Email</label>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.Email)%>
        </div>
        <%--        <div class="editor-label">
            <%= Html.LabelFor(model => model.OrgId) %>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.OrgId) %>
        </div>--%>
        <div class="editor-label">
            <%= Html.LabelFor(model => model.LoginNum) %>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.LoginNum) %>
        </div>
        <div class="editor-label">
            <label for="LastLogin">
                Last Login Time</label>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.LastLogin)%>
        </div>
        <div class="editor-label">
            <label for="LastLogin">
                Create Time</label>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.CreateTime)%>
        </div>
        <div class="editor-label">
            <label for="LastLogin">
                Birth Date</label>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.BirthDate)%>
        </div>
        <div class="editor-label">
            <label for="Gender">
                Gender</label>
        </div>
        <div class="editor-field">
            <%=Html.RadioButtonFor(m => m.Gender, (int)CognisessCommLib.EnumGender.Male, new { @checked = "check"})%>Male
            <%=Html.RadioButtonFor(m => m.Gender, (int)CognisessCommLib.EnumGender.Female)%>Female
        </div>
        <div class="editor-label">
            <label for="EducationLevel">
                Education Level</label>
        </div>
        <div class="editor-field">
            <%= Html.DropDownListFor(model => model.EducationLevel, (IEnumerable<SelectListItem>)ViewData["Education"])%>
        </div>
        <div class="editor-label">
            <label for="IsMarried">
                Is Married</label>
        </div>
        <div class="editor-field">
            <%=Html.RadioButtonFor(m => m.IsMarried, (int)CognisessCommLib.EnumIsMarried.Married, new { @checked = "check" })%>Married
            <%=Html.RadioButtonFor(m => m.IsMarried, (int)CognisessCommLib.EnumIsMarried.Unmarried)%>Unmarried
        </div>
        <div class="editor-label">
            <label for="Occupation">
                Occupation</label>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.Occupation)%>
        </div>
        <div class="editor-label">
            <label for="Occupation">
                Industry</label>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.Industry)%>
        </div>
        <div class="editor-label">
            <label for="Occupation">
                How To Know Us</label>
        </div>
        <div class="editor-field">
            <%= Html.DropDownListFor(model => model.HowToKnowUs, (IEnumerable<SelectListItem>)ViewData["About"])%>
        </div>
        <div class="editor-label">
            <label for="Occupation">
                Time Zone</label>
        </div>
        <div class="editor-field">
            <%= Html.DropDownListFor(model => model.TimeZone, (IEnumerable<SelectListItem>)ViewData["TimeZoneT"])%>
        </div>
        <div class="editor-label">
            <label for="Occupation">
                Address</label>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.Address)%>
        </div>
        <div class="editor-label">
            <label for="Occupation">
                Is Trial</label>
        </div>
        <div class="editor-field">
            <%=Html.RadioButtonFor(m => m.IsTrial, (int)CognisessCommLib.EnumIsTrial.Trial, new { @checked = "check" })%>Trial
            <%=Html.RadioButtonFor(m => m.IsTrial, (int)CognisessCommLib.EnumIsTrial.OutOfTrial)%>Out
            Of Trial
        </div>
        <div class="editor-label">
            <label for="Occupation">
                Remaining Day</label>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.RemainingDay)%>
        </div>
        <div class="editor-label">
            <label for="Occupation">
                Is Activated</label>
        </div>
        <div class="editor-field">
            <%=Html.RadioButtonFor(m => m.IsActivated, (int)CognisessCommLib.EnumIsActivated.Activated, new { @checked = "check" })%>Activated
            <%=Html.RadioButtonFor(m => m.IsActivated, (int)CognisessCommLib.EnumIsActivated.Unctivated)%>Unctivated
        </div>
        <div class="editor-label">
            <label for="Occupation">
                Telephone</label>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.Telephone)%>
        </div>
        <div class="editor-label">
            <label>
                Fax</label>
        </div>
        <div class="editor-field">
            <%= Html.TextBoxFor(model => model.Fax)%>
        </div>
    </fieldset>
    <p>
        <%= Html.ActionLink("Edit", "Edit", new { id = Model.Id })%>
        |
        <%= Html.ActionLink("Back to List", "Index") %>
    </p>
</asp:Content>
